<template>
	<view class="page-box">
		<view class="box">
			<view>头像</view>
			<image class="img" :src="userinfo.avatarUrl"></image>
		</view>
		<view class="box">
			<view>性别</view>
			<view>{{userinfo.gender == 2 ? '女':'男'}}</view>
		</view>
		<view class="box">
			<view>国家</view>
			<view>{{userinfo.country}}</view>
		</view>
		<view class="box">
			<view>省份</view>
			<view>{{userinfo.province}}</view>
		</view>
		<view class="box">
			<view>地区</view>
			<view>{{userinfo.city}}</view>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		computed:{
			userinfo(){
				return uni.getStorageSync('userinfo')
			}
		},
		onLoad() {
		},
		methods: {
			Jump(){
				uni.navigateTo({
					url:'./userinfo'
				})
			}	
		}
	}
</script>

<style scoped lang="scss">
	.box{
		background-color: #FFFFFF;
		padding:20rpx 60rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		font-size: 30rpx;
		font-weight: 400;
		line-height: 50rpx;
		color: #333333;
		opacity: 1;
		margin: 16rpx 0rpx;
		text-align: left;
		}
	.img{
		width: 120rpx;
		height: 120rpx;
		border-radius: 50%;
		}
</style>
